package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckGroup;
import com.itheima.health.pojo.CheckGroupItem;

import java.util.List;

/**
 * 2024/7/4-23:09
 * 功能:
 */
public interface CheckGroupService {
    CheckGroupItem isExist(Integer id);

    void add(CheckGroup checkGroup, Integer[] checkItemIds);

    PageResult findPage(QueryPageBean queryPageBean);

    CheckGroup findById(Integer id);

    List<Integer> findCheckItemIdsByCheckGroupId(Integer checkGroupId);

    void edit(CheckGroup checkGroup, Integer[] checkItemIds);

    Boolean delete(Integer id);

    List<CheckGroup> findAll();
}
